package com.ruoyi.business.service;

import com.ruoyi.business.domain.Dormitory;
import com.ruoyi.business.domain.model.AccommodationInfo;
import com.ruoyi.business.domain.vo.DormitoryVo;
import com.ruoyi.business.domain.bo.DormitoryBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 宿舍Service接口
 *
 * @author ruoyi
 * @date 2023-06-25
 */
public interface IDormitoryService {

    /**
     * 查询宿舍
     */
    DormitoryVo queryById(Long id);

    /**
     * 查询宿舍列表
     */
    TableDataInfo<DormitoryVo> queryPageList(DormitoryBo bo, PageQuery pageQuery);

    /**
     * 查询宿舍列表
     */
    List<DormitoryVo> queryList(DormitoryBo bo);

    /**
     * 新增宿舍
     */
    Boolean insertByBo(DormitoryBo bo);
    /**
     * 新增宿舍
     */
    Dormitory insertByBo2(DormitoryBo bo);
    /**
     * 修改宿舍
     */
    Boolean updateByBo(DormitoryBo bo);

    /**
     * 校验并批量删除宿舍信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
    /**
     * 获取床位的详细信息，包含员工信息，缴费信息，楼栋信息
     */
   List<AccommodationInfo> getAccommodationInfoList(DormitoryBo bo);

    TableDataInfo<DormitoryVo> getDormitoryIListByIds(List<Long> ids);
}
